import org.junit.Test;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;

/**
 * @author Yin_JC
 * @PackageName:PACKAGE_NAME
 * @Class:IteratorTest
 * @Description:
 * @date 2020/3/4 15:25
 */

public class IteratorTest {
    @Test
    public void t1(){
        Collection c1 = Arrays.asList("Sdsd", "dsd", "Sdssd");
        Iterator iterator = c1.iterator();
        while(iterator.hasNext()){
            System.out.println(iterator.next());
        }

    }
}
